#ifndef __EXIT_H
#define __EXIT_H

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "led.h"

#define BOOT_EXIT_GPIO_PIN  GPIO_NUM_0
#define BOOT_EXIT_PRES      0
#define BOOT_EXIT_LIFT      1
#define BOOT_EXIT_VALUE     gpio_get_level(BOOT_EXIT_GPIO_PIN)

void exit_init(void);
void IRAM_ATTR exit_isr_handle(void* args);

#endif // !__EXIT_H